package tvv.test.catalog.service;

import tvv.test.catalog.model.Goods;
import tvv.test.catalog.util.GoodNotExist;

/**
 * Created by VLAD on 25.10.2014.
 */
public interface IGoodService {

    public Goods saveGoods(Goods goods);

    public Iterable<Goods> getAllGoods();

    public Goods getGoodsById(long id) throws IllegalArgumentException;

    public void deleteAllGoods();

    public void deleteGoods(Goods goods) throws IllegalArgumentException;

    public long count();
}
